package com.xiaoxiaoxt.xiaoxiaoxtdao.mapper;

import com.xiaoxiaoxt.xiaoxiaoxtdao.entity.PaperGroupQuestion;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public interface PaperGroupQuestionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PaperGroupQuestion record);

    int insertSelective(PaperGroupQuestion record);

    PaperGroupQuestion selectByPrimaryKey(Integer id);

    List<PaperGroupQuestion> findListByPaperId(Integer paperId);

    List<PaperGroupQuestion> selectListByGroupId(Integer groupId);

    List<PaperGroupQuestion> selectListByParentId(Integer groupId);

    ArrayList<PaperGroupQuestion> getCategory(HashMap params);

    ArrayList<PaperGroupQuestion> selectListByPaperIdOrderBySortTree(@Param("paperId") Integer paperId, @Param("mid") Integer mid);

    ArrayList<PaperGroupQuestion> selectListByPaperIdOrderBySort(@Param("paperId") Integer paperId);

    int updateHtmlByPaperIdBatch(@Param("paperId") Integer paperId, @Param("version") Integer version, @Param("list") List<HashMap<String, String>> list);
}